home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / cpp.arc / READ.ME < prev    next >
Text File  |  1985-12-10  |  3KB  |  79 lines

  1.     MS-DOS specific implementation information for DECUS C Preprocessor
  2.                 December, 1985
  3.  
  4.     CPP is the DECUS C Preprocessor, as implemented by Martin Minow.
  5. The version in this library has been modified from the net.sources release
  6. to support the Lattice and Microsoft C compilers for MS-DOS.   Modifications
  7. include the ability to search for system header files in the directory
  8. "\INCLUDE", the ability to search one directory specified in the environment
  9. variable "INCLUDE" (See the MS-DOS INCLUDE command for information on
  10. setting environment variables), and the ability to deal with MS-DOS
  11. memory models.
  12.  
  13. To select the memory model, use the '-M<model>' command line switch, where
  14. <model> is one character as specified below.   The following memory models
  15. are supported:
  16.  
  17. Model    Compiler    sizeof (data *)       sizeof (func *)   Predefines
  18.    s     Lattice        2        2         I8086S
  19.      Microsoft                         SPTR
  20.                                  M_I86SM
  21.                                  M_I86
  22.                                  I8086
  23.                                  MSDOS
  24.  
  25.    p     Lattice        2        2         I8086P
  26.                                  SPTR
  27.                                  I8086
  28.                                  MSDOS
  29.  
  30.    d     Lattice        4               4         I8086D
  31.                                  LPTR
  32.                                  I8086
  33.                                  MSDOS
  34.  
  35.    m     Microsoft        2        4         M_I86MM
  36.                                  M_I86
  37.                                  MSDOS
  38.  
  39.    l     Lattice        4        4         I8086L
  40.                                  LPTR
  41.                                  M_I86LM
  42.                                  M_I86
  43.                                  I8086
  44.                                  MSDOS
  45.  
  46.     The preprocessor predefinition SS_NE_DS under Microsoft C is not
  47. supported, and must be supplied by the user via the -D<idname> option if
  48. desired.   Where the memory model implies the compiler, only those symbols
  49. which that compiler normally predefines are predefined.   The S and L models
  50. are the same in the Microsoft and Lattice compilers, and therefore the
  51. symbols for both compilers must be defined.
  52.  
  53. We have not tried out the file FLOATCPP.C, nor do we have any desire to.
  54. However, it is included for those who are less lazy than we.
  55.  
  56. The version of the C Preprocessor we are distributing compiles under the
  57. Microsoft C compiler.   It is likely that the only problems with bringing it
  58. up under Lattice would be the lack of the UNIX library function ctime()
  59. and the #define MACHINE <stuff> line in the MS-DOS definitions.
  60. The ctime() function problem can be fixed by defining OK_DATE to be FALSE.
  61. Alternatively, the user can make their own.   The other definition can
  62. be gotten around by taking out the carriage returns, at the expense of
  63. code readability.   If necessary, some of the names in the MACHINE
  64. definition may be moved to the SYSTEM definition, but this is not really
  65. kosher to purists like ourselves.
  66.  
  67.     DECUS C is a creation of DEC employees who wanted a C compiler on
  68. DEC machines, particularly the PDP-11 class machines.  It is entirely in the
  69. public domain; general permission to use and distribute the software has been
  70. granted, provided that it is distributed free of charge.  No profit-making
  71. schemes allowed!
  72.  
  73. The Lattice C and Microsoft C compiler modifications for MS-DOS are not part
  74. of the DECUS C Preprocessor distribution yet, but we are in the process of
  75. sending them back to the source.
  76.  
  77.         - Ted Lemon and Jym Dyer
  78.             December, 1985
  79.